libxc: add ability to query OS interface for "fakeness"
authorIan Campbell <ian.campbell@citrix.com>
Fri, 3 Dec 2010 09:36:47 +0000 (09:36 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 3 Dec 2010 09:36:47 +0000 (09:36 +0000)
commit048f6a9497466b39eb6f34eb0a699e632c15929f
treeb323954ad4f08e230ca40aca617d2d458ef93ae9
parentfa0eebfd1bd2a7eea7b6cb424a8d83cebfe6ee0b
libxc: add ability to query OS interface for "fakeness"

i.e. not running on a real hypervisor

Allows users of the library to adjust behaviour. I don't especially
like this violation of the abstraction but both oxenstored and xapi
use this to avoid difficult to simulate operations when running on the
simulator.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson.citrix.com>
tools/libxc/xc_linux.c
tools/libxc/xc_minios.c
tools/libxc/xc_netbsd.c
tools/libxc/xc_private.c
tools/libxc/xc_solaris.c
tools/libxc/xenctrl.h
tools/libxc/xenctrlosdep.h